package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.BaseResult;

@RestController
@RequestMapping("/guest")
public class GuestController {

	@RequestMapping(value = "/enter", method = RequestMethod.GET)
	public BaseResult login() {
		return new BaseResult(200, "游客", null);
	}

	@RequestMapping(value = "/getMessage", method = RequestMethod.GET)
	public BaseResult submitLogin() {
		return new BaseResult(200, "您拥有获得该接口的信息的权限！", null);
	}
}
